package com.jk.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/***
 * @ClassName: OrderPO
 * @Description:TODO
 * @Auther: 景晨璇
 * @Date: 2021/6/30 14:32
 * @version : V1.0
 */
@Data
@Document(collection = "travel_ticket")
@ApiModel("订单实体类")
public class OrderPO implements Serializable {
    @ApiModelProperty("编号")
    private String id;
    @ApiModelProperty("订单号")
    private String ordernumber;
    @ApiModelProperty("地区名称")
    private String areaname;
    @ApiModelProperty("行程时间")
    private String traveltime;
    @ApiModelProperty("购票人")
    private String contacts;
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("酒店名称")
    private String hotelname;
    @ApiModelProperty("酒店价格")
    private Integer hotelprice;
    @ApiModelProperty("酒店联系人")
    private String realname;
    @ApiModelProperty("总价")
    private Integer totalprice;
    @ApiModelProperty("订单创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date creationtime;
    @ApiModelProperty("儿童票")
    //儿童票
    private Integer childrenticket;
    @ApiModelProperty("成人票")
    //成人票
    private Integer adultticket;
    @ApiModelProperty("订单状态")
    //订单状态 1 已经支付 2 未支付
    private Integer orderstatus;
}
